{php}
    $controller = strtolower(request()->controller());
{/php}
<div class="page-container row-fluid container-fluid">
    <div class="page-sidebar fixedscroll">
        <div class="page-sidebar-wrapper" id="main-menu-wrapper">
            <ul class='wraplist'>
                {if condition="$controller eq 'mine'"}
                    <li class="menu-title open" >
                {else /}
                    <li class="menu-title" >
                {/if}
                    <a href="{:url('mine/index')}">
                        <i class="fa fa-home" aria-hidden="true"></i>
                        <span class="title ">我的应用</span>
                    </a>
                </li>

                {if condition="$controller eq 'account'"}
                    <li class="menu-title open" >
                {else /}
                    <li class="menu-title" >
                {/if}
                    <a href="{:url('account/index')}">
                        <i class="fa fa-cog" aria-hidden="true"></i>
                        <span class="title ">账户设置</span>
                    </a>
                </li>

                {if condition="$controller eq 'message'"}
                    <li class="menu-title open" >
                {else /}
                    <li class="menu-title" >
                {/if}
                    <a href="{:url('message/index')}">
                        <i class="fa fa-envelope" aria-hidden="true"></i>
                        <span class="title ">消息通知</span>
                    </a>
                </li>

                {if condition="$controller eq 'order'"}
                    <li class="menu-title open" >
                {else /}
                    <li class="menu-title" >
                {/if}
                    <a href="{:url('order/index')}">
                        <i class="fa fa-newspaper-o" aria-hidden="true"></i>
                        <span class="title ">订单中心</span>
                    </a>
                </li>

                {if condition="$controller eq 'domain'"}
                    <li class="menu-title open" >
                {else /}
                    <li class="menu-title" >
                {/if}
                    <a href="{:url('domain/index')}">
                        <i class="fa fa-internet-explorer" aria-hidden="true"></i>
                        <span class="title ">域名管理</span>
                    </a>
                </li>

                {if condition="$controller eq 'agent'"}
                    <li class="menu-title open" >
                {else /}
                    <li class="menu-title" >
                {/if}

                    {if condition="$userInfo.isAgent eq 1"}
                        <a href="{:url('agent/index', array('nav' => 'invite'))}">
                            <i class="fa fa-group" aria-hidden="true"></i>
                            <span class="title ">我的代理</span>
                        </a>
                    {else /}
                        <a href="{:url('agent/applyAgent')}">
                            <i class="fa fa-group" aria-hidden="true"></i>
                            <span class="title ">我的代理</span>
                        </a>
                    {/if}

                </li>

                <li class="menu-title searchform">
                    <hr class="search-top-hr" />
                </li>


                <li class="menu-title">
                    <a href="javascript:void(0)" style="color:#39b473;">
                        <i class="fa fa-plus-circle" aria-hidden="true" style="color:#39b473;"></i>
                        <span class="title">常用应用</span>
                    </a>
                </li>

                <div id="app-list">
                    {foreach name="appList" item="vo"}
                    <li class="menu-title sidebar-app ">
                        <a href="{:url('mine/dashboard', array('app' => $vo['app']))}" id="sideBarFirstApp">
                            <div class="app-icon">
                                <img src="{$vo.icon|default='/static/home/images/default-thumbnail.png'}"
                                     class="appicon_sidebar pull-left img-circle" />
                            </div>
                            <div class="app-info">
                                <h4 class="app-title">{$vo.name}</h4>
                                <span class="app-type">
                                    {switch $vo.signType }
                                        {case 0}IOS应用{/case}
                                        {case 1}企业签名{/case}
                                        {case 2}超级签名{/case}
                                        {case 3}网页封装{/case}
                                        {case 4}安卓应用{/case}
                                    {/switch}
                                </span>
                            </div>
                        </a>
                    </li>
                    {/foreach}
                </div>

                {notempty name="appList"}
                <li class="menu-title">
                    <a href="{:url('mine/index')}" style="color:#39b473;">
                        <i class="fa fa-arrow-right" aria-hidden="true" style="color:#39b473;"></i>
                        <span class="title">查看更多</span>
                    </a>
                </li>
                {/notempty}
            </ul>
        </div>
    </div>
</div>